home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 December
/
PCWorld_2005-12_cd.bin
/
software
/
vyzkuste
/
pspad
/
pspad433inst_cz.exe
/
{app}
/
Context
/
Pascal.DEF
< prev
next >
Wrap
Text File
|
2003-08-07
|
3KB
|
153 lines
; Tento soubor obsahuje makra programu PSPad pro Pascal
;
; ╪ßdky zaΦφnajφcφ st°ednφkem a prßzdnΘ °ßdky jsou ignorovßny
;
; Formßt p°φkaz∙ :
; [jmΘno_p°φkazu | popis p°φkazu (libovoln² text)]*klßvesovß_zkratka
; °ßdek p°φkazu, kter² bude vlo₧en
; °ßdek p°φkazu, kter² bude vlo₧en ...
;
; hlaviΦka p°φkazu je uzav°ena do [], znak | slou₧φ jako odd∞lovaΦ
; jmΘna p°φkazu a komentß°e.
; * urΦuje nepovinnou klßvesovou zkratku
; pokud °ßdek p°φkazu obsahuje znak |, kurzor se po vlo╛enφ do
; textu zastavφ na tomto mφst∞
; pokud °ßdek p°φkazu obsahuje znak º, bude zde vlo₧en oznaΦen² text
;
; autor: Borand - p°evzato z Delphi5
; poslednφ revize 12.8.2001
;
[Macro definition]
%OF%=@E Of:,
%FROM%=@E Bounds from:,
%TO%=@E Bounds to:,
%NAME%=@E Name:,
%TNAME%=@E Parent class name:,,TObject,
%COUNTER%=@E Counter name:,,i,
%RESULT%=@C Result type:,,,Integer;String;Boolean,
%PARAMS%=@E Parametres:,
;
[array |n array declaration (var)]
array[%From%..%To%] of %Of%;
|
[case | case statement (with else)]
case | of
: ;
: ;
else ;
end;
;
[classf |n class declaration (all parts)]
%Name% = class(%TName%)
private
|
protected
public
published
end;
;
[classd |n class declaration (no parts)]
%Name% = class(%TName%)
|
end;
;
[classc |n class declaration (with Create/Destroy overrides)]
%Name% = class(%TName%)
private
|
protected
public
constructor Create; override;
destructor Destroy; override;
published
end;
;
[fors |n for (no begin/end)]
for %Cunter% := %From% to %To% do
º|
[forb |n for statement]
º
for %Cunter% := %From% to %To% do
begin
º|
end;
º
[function |n function declaration]
function %Name%(%Params%): %Result%;
begin
|
end;
;
[ifs | if (no begin/end)]
if | then
º
[ifb | if statement]
if | then begin
º
end;
;
[ife | if then (no begin/end) else (no begin/end)]
if | then
º
else
;
[ifeb | if then else]
if |
then begin
º
end
else begin
end;
;
[procedure |n procedure declaration]
procedure %Name%(%Params%);
begin
|
end;
;
[trye | try except]
try
º|
except
end;
;
[tryf | try finally]
try
º|
finally
end;
;
[trycf |n try finally (with Create/Free)]
%Name% := %TName%.Create;
try
|
finally
%Name%.Free;
end;
;
[whileb | while statement]
while | do begin
º
end;
;
[whiles | while (no begin)]
while | do
;
[withb | with statement]
with | do begin
º
end;
;
[withs | with (no begin)]
with | do
º
;